﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SL8.SL;
using System.Data.Linq.Mapping;

namespace XingZhe.Entities
{
        public class workout : ObservableObject
        {
                public int Id
                {
                        get
                        {
                                return this.GetCacheValue(o => o.Id, default(int));
                        }
                        set
                        {
                                this.SetCacheValue(o => o.Id, value);
                        }
                }

                public int user_id
                {
                        get
                        {
                                return this.GetCacheValue(o => o.user_id, default(int));
                        }
                        set
                        {
                                this.SetCacheValue(o => o.user_id, value);
                        }
                }

                public int sport
                {
                        get
                        {
                                return this.GetCacheValue(o => o.sport, default(int));
                        }
                        set
                        {
                                this.SetCacheValue(o => o.sport, value);
                        }
                }

                public int start_time
                {
                        get
                        {
                                return this.GetCacheValue(o => o.start_time, default(int));
                        }
                        set
                        {
                                this.SetCacheValue(o => o.start_time, value);
                        }
                }

                public int end_time
                {
                        get
                        {
                                return this.GetCacheValue(o => o.end_time, default(int));
                        }
                        set
                        {
                                this.SetCacheValue(o => o.end_time, value);
                        }
                }
                public int distance 
                {
                        get
                        {
                                return this.GetCacheValue(o => o.distance, default(int));
                        }
                        set
                        {
                                this.SetCacheValue(o => o.distance, value);
                        }
                }
                public int duration  
                {
                        get
                        {
                                return this.GetCacheValue(o => o.duration, default(int));
                        }
                        set
                        {
                                this.SetCacheValue(o => o.duration, value);
                        }
                }
                public int upload_status  
                {
                        get
                        {
                                return this.GetCacheValue(o => o.upload_status, default(int));
                        }
                        set
                        {
                                this.SetCacheValue(o => o.upload_status, value);
                        }
                } 
                public int last_upload  
                {
                        get
                        {
                                return this.GetCacheValue(o => o.last_upload, default(int));
                        }
                        set
                        {
                                this.SetCacheValue(o => o.last_upload, value);
                        }
                }
                public int server_id   
                {
                        get
                        {
                                return this.GetCacheValue(o => o.server_id, default(int));
                        }
                        set
                        {
                                this.SetCacheValue(o => o.server_id, value);
                        }
                }
                public int title    
                {
                        get
                        {
                                return this.GetCacheValue(o => o.title, default(int));
                        }
                        set
                        {
                                this.SetCacheValue(o => o.title, value);
                        }
                }
        }
}
